package com.ruoyi.project.app.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.app.util.XResult;
import com.ruoyi.project.beautyflower.product.domain.Product;
import com.ruoyi.project.beautyflower.product.service.IProductService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/product")
@Api(tags = "首页产品模块 ")
public class AppProductController {
    @Autowired
    private IProductService productService;
    /**
     * 查询首页主打产品数据
     * @return
     */
    @PostMapping("selectProductList")
    @ApiOperation(notes = "selectProductList", value = "查询首页主打产品数据")
    public Object selectProductList()  {
        return new XResult("查询成功", productService.selectProductList(new Product()));
    }
}
